﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>网上超市</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body><div align="left"><br></div><div align="center"> 
    </div><%if(session.getAttribute("loginedUser") != null) {%><div align="right"> 
    欢迎您${loginedUser.usersId }<a href="logout.jsp">登出</a><br></div>
    <%} else { %> 
    <div align="right">欢迎您，您的身份是游客，请您<a href="usersLogin.jsp">登陆</a><br>
    </div><%} %>
    
    <div align="center"><a href="goodsShow.do">进入超市</a> 
  </div></body>
</html>
